{% extends "base.html" %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <h2 class="mb-4">管理员后台 - 录入营养类别</h2>
        <form method="POST">
            {{ form.hidden_tag() }}
            <div class="mb-3">
                {{ form.age_range.label(class="form-label") }}
                {{ form.age_range(class="form-control") }}
            </div>
            <div class="mb-3">
                {{ form.name.label(class="form-label") }}
                {{ form.name(class="form-control") }}
            </div>
            <div class="mb-3">
                {{ form.description.label(class="form-label") }}
                {{ form.description(class="form-control") }}
            </div>
            <div class="mb-3">
                {{ form.suitable_gender.label(class="form-label") }}
                {{ form.suitable_gender(class="form-control") }}
            </div>
            <div class="mb-3">
                {{ form.suggestions.label(class="form-label") }}
                {{ form.suggestions(class="form-control") }}
            </div>
            <div class="mb-3">
                {{ form.recommended_products.label(class="form-label") }}
                {{ form.recommended_products(class="form-control") }}
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>
</div>
{% endblock %}
